package com.xframe.xdal.core.handler.valueTake;

import java.sql.ResultSet;
import java.sql.SQLException;

public class DateTakingStrategy implements IValueTakingStrategy{
    @Override
    public Object getValue(ResultSet resultSet, int colIndex) {
        try {
            return resultSet.getTimestamp(colIndex);
        } catch (SQLException e) {
            e.printStackTrace();
            return null;
        }
    }
}
